import React from 'react';
import {Link} from 'react-router-dom'

export default class Test extends React.Component{
  render(){
      return (
        <div className="container">
            <nav className="navbar navbar-expand-lg navbar-light bg-light">
                <Link className="navbar-brand" to="/">Navbar</Link>
            <button className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span className="navbar-toggler-icon"></span>
            </button>

            <div classNameName="collapse navbar-collapse" id="navbarSupportedContent">
                <ul className="navbar-nav mr-auto">
                <li className="nav-item active">
                    <Link className="nav-link" to="/login">Home <span className="sr-only">(current)</span></Link>
                </li>
                <li className="nav-item">
                    <Link className="nav-link" to="#">Login</Link>
                </li>
                <li className="nav-item">
                    <Link className="nav-link" to="#">TypeChange</Link>
                </li>
                <li className="nav-item dropdown">
                    <Link className="nav-link dropdown-toggle" to="#" id="navbarDropdown" role="button"
                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        TypeChange
                    </Link>
                    <div className="dropdown-menu" aria-labelledby="navbarDropdown">
                        <Link className="dropdown-item" to="#">Student</Link>
                        <Link className="dropdown-item" to="#">Teacher</Link>
                        <div className="dropdown-divider"></div>
                        <Link className="dropdown-item" to="#">Administrator</Link>
                    </div>
                </li>
                </ul>
            </div>
          </nav>
        </div>
      )
  }
}
